ALL=cdata.exe
SRC=$(wildcard *.c)
CC=gcc
CFLAGS=--input-charset=UTF-8 --exec-charset=GB18030


$(ALL):$(SRC)
	$(CC) $(CFLAGS) -o $@ $^


clean:
	@rm -f *.o
	@rm -f *.exe
	@rm -f *.bin
	@rm -f test.txt


test:$(ALL)
	./$(ALL) -o test.txt ./$(ALL)


.PHONY:clean
.PHONE:test




